package com.jz.yanshe.ui;

import android.webkit.WebSettings;
import android.webkit.WebView;

import butterknife.BindView;
import jz.com.feierman.R;
import com.jz.yanshe.base.BaseActivity;

/**
 * Created by Administrator on 2018/4/4.
 */

public class WebViewActivity extends BaseActivity{
    @BindView(R.id.webview)
    WebView webview;
    String url;

    @Override
    protected void initViews() {
        WebSettings webSettings = webview.getSettings();
        webSettings.setJavaScriptEnabled(true);
        webview.loadUrl(url);
    }

    @Override
    protected void initData() {
        url = getIntent().getStringExtra("url");
    }

    @Override
    protected int getLayoutResource() {
        return R.layout.activity_webview;
    }
}
